package com.wfx.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@RequiredArgsConstructor
public class PageResult<T> {
    //是否成功
    @NonNull
    @ApiModelProperty("是否成功")
    private Boolean success;
    //提示信息
    @NonNull
    @ApiModelProperty("提示信息")
    private String msg;
    //总记录数
    @ApiModelProperty("总记录数")
    private Long total;
    //总页数
    @ApiModelProperty("总页数")
    private Long pages;
    //当前页数据
    @ApiModelProperty("当前页数据")
    private List<T> data;

}
